/* eslint-disable quotes,no-process-env */
const developmentConfig = require('./development')

module.exports = {

    ...developmentConfig,

    // 正式环境配置
    app: {
        port: process.env.PORT || 8816
    },
    mongodb: {
      main: {
        dbName: 'workbench',
        url: 'mongodb://dev:GERGWEF4YW3REY1YU5@81.70.152.40:6234/workbench'
      },
      dw: {
        dbName: 'data',
        url: 'mongodb://data:6934JFERWX093RJSADF1@81.70.152.40:6234/data'
      }
    },
    // Json Web Token Config
    JWT: {
        secret: 'b5b2cb14c0893169a5dc57100',
        expires: 60 * 60 * 24 * 7 * 365
    },
    cookieOption: {
        maxAge: 60 * 60 * 24 * 365 * 1000,
        httpOnly: false,
        sameSite: 'none',
        secure: true
    }
}
